package com.gwt.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.gwt.client.PersonService;
import com.gwt.shared.Person;

public class PersonServiceImpl extends RemoteServiceServlet implements PersonService{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5569398664506273083L;

	@Override
	public Person personServer() {
		Person p = new Person("Homer Simpson", "1234 Fake St.", new Person("Abe Simpson", "the retirement home", null)); 
		p.setServerInfo(getServletContext().getServerInfo());
		p.setClientInfo(getThreadLocalRequest().getHeader("User-Agent"));
		
		return p;
	}

}
